package com.powernode.money.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.powernode.money.mapper.FinanceAccountMapper;
import com.powernode.money.model.FinanceAccount;
import com.powernode.money.service.FinanceAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Service(interfaceClass = FinanceAccountService.class,version = "1.0.0",timeout = 15000)
public class FinanceAccountServiceImpl implements FinanceAccountService {
    @Autowired
    private FinanceAccountMapper financeAccountMapper;

    @Override
    public FinanceAccount queryByUid(Integer uid) {
        return financeAccountMapper.selectByUid(uid);
    }

    @Override
    public int executeUpdateByPrimaryKeySelective(FinanceAccount record) {
        return financeAccountMapper.updateByPrimaryKeySelective(record);
    }
}
